fix failing tests. test and mocked sources would cause exceptions