Fix constant warnings in test suite