added proper error handling for xhr calls and callbacks
working on asynchronous test
new asynchronous test. unformatunately fails in grunt-mocha-blanket task due to CORS restrctions.