Warning message matching with tests