use karma for tests, rewrite for jasmine
add test helpers
refactor, allow calling methods on view instances