Fix wrong error  message in text
Fix incorrect test