Added name expectations for better error messages.
Added tests for model expectations.
Move xhrSetup out of the setup function and into runTests.