Added preprocessor flag _WITH_GTEST_MAIN.

Added a new test to the test suite