added test cases for the undefined type