test for the expected warning