Using mocks instead of react objects for helper testing