Added gmock support for tests.