upgraded jasmine
fixes incorrect tests, adds tests, rewrites some tests a bit