test func to create entiy