gmock test function added