refactor pkText() unit test