Added amd error check test.

Also upgraded jasmine.

Closes #56 
@steveoh Will you review and merge?