Tests

Implemented tests in Jasmine.

Updated Jasmine to 1.3. 

Hacked around a Jasmine feature that wasn't working.