Fix same warnings in tests