Added test for invalid type id