add more to prefix-value test
refactor prefixValue() with visitor