[BISERVER-10429] Add more thorough error handling on unit tests, mocks and implementations