Unit tests

Unit tests for the schema exporting.