Fixed mocks in Detached tests.