Added error message tests