Rewrite tests

* Remove sinon and sinon-as-promised
* Test element class instead of element and $animate method calls
* Flush deferred removal of animation class