Switch to jasmine 2.0, add unit tests