add structure persistence tests. closes #1