Fixed warnings in test compilation.