Fixed build errors
Test setup using gtest