Simplified googleTest integration tests by supplying main method in test code

- Could not get main method provided by static library working on windows or linux
- We should add a generator task to create the boilerplate main method
Fix GoogleTest for linux (hopefully) by linking with -pthread