Ported tests to jasmine, still failing :<