I was trying out Promises and have the 2 functions below. I was calling test1() and then using then() to call test2(). The behavior
test1()
then()
test2()