added serialisation methods and tests for grouter