Fixed several compilation errors in test suites