improve IsSamePoet test method