refactor(registry): Remove unused legacy payload methods
fix(tests): add tests for unit marshaling and payload unmarshaling