added test for issue #178

The test would fail for 4.0.1 where there's no wrapping `Promise.resolve` and would succeed in 4.0.1.