Promise .resolve() and .reject() tests