Cleaned up test build scripts.
Fixed virtual tables tests.