fix error, since Promise was not leaking tests that accessed it were failing