Httpbackend methods for flushing on unit tests