Added expectedException annotation instead of try catch block in DeletType test