Made the spec catch the invalid promise