Dropped gtest version to 7 and fixed defines in test code so tests run on Windows