Remove compiler warnings in tests