protect 2 Google test cases for validkey