Updated test to remove broken test.
Replace throw with reject.