Add tests for when's Core and Promises API
Add when(x) overloads
Add when(x, f) overloads
Add overloads for when's members
Add when.Promise members
Merge pull request #3272 from Nemo157/when-tests

Add tests for when