tests for recently added warning

also a bit of framework for testing more warnings later