Fix test cases for error messages with parameters #8