Added/updated Jasmine tests.