ported tests over to jasmine