Removed compilation warnings from tests.