added test marshalling objects with generic