implementing tests with mock httpbackend