refactored tests and switched to jasmine
got jasmine tests working