Fix compilation errors in SchemaManager.
Move all test executables back to /
Fix some tests.
Fix the Makefile.