fixed tests and put error message in yml