removed test condition for error message which is different