Add basic tests for reading/writing structure files