chore(karma): reorder tests
chore(npm) update dependencies
chore(promises): fix method calls
tests(karma): sort out setup and tear down stubs