Refactored out test cases

Factored out an internal, base testcase that creates a public schema on `setUp` and removes all schemas on `tearDown`.