updated tests to use jasmine, added more tests