Added some simple utility functions so we can serialize / deserialize
tests easily now