Add ptab_free unit tests
Fixed failed free_uninitialized unit test