Added test for invalid POST handler
Updated model-test for Model#invalidFields

* Also updated ajax-mock - added support for mocking errors