Add tests to show that reading a structure before versioning it breaks versioning
Make it so that versioning a structure that was read from the database works correctly