Fixing autodetection of GL3 define
Executing tests only if gtest library is detected