Fixed some compilation errors in tests.
Fixed some compilation errors.