Fixed tests that were not ported from intern to jasmine correctly.

Closes #40