* fix tests for browsers
+ add `whenComplete` method