changed tests from sanity over to unit tests using jasmine. See docs for how to run