now using karma-chai-plugins

it includes sinon-chai, chai-as-expected and a few other bits.
added frontend asynchronous unit tests
fixed backend asynchronous tests

tests were passing that should have failed.