Remove warnings in test files