fix gmock warnings by using NiceMock