Added g4 testing

First commit that allows testing to be built at compile time. Will eventually update to more CMake way of doing things.