Replaced inlined structs with pointers to better match Go style.
Renamed Create functions in the test code to New* for the given type, and changed the tests and the code to better conform to Go style