Using googlemock to test