addad test for allocate person class