feat(mocks): change MockHttpBackend to define assertions on flush.

There was a mixup with merging #1206. 
This is the same PR rebased on top of master.