Added testcases for errormessages