extract setupSchemas to separate function
Provide access to application for restart tests
Add unit test for loading version 2 schemas