feat(ngMock): allow override of when/expect definitions

Closes #5766
Closes #8352