(tests) Replace uninitialized with mocks.