refactored googletest for readability