Remove mocks in test_core