Form: added jasmine tests

- [ ] @Aintaer 
This test is tautological. It simply tests that running the function will throw the error, which you have defined to be case.