fixed test code to build even if google test not used