Don't display warning during tests