Fixed the missing test cases with expected exceptions if given bad identifiers