fix expect hasPromises check and improved performance
v0.2.4