Got the tests passing using httpbackend this time round