Add gtest support
Added
Add a trivial init test
Make gtest support conditional
Merge pull request #15 from ekr/add_gtests

Add gtests