[BISERVER-10429] Add more thorough error handling on unit tests, mocks a...

...nd implementations