Integrate gtest in rather than use gtest-config
clean up of write_ptr