Remove redundant warning prefix from message
Fix test case

Regression from 3fdb308