fix value list at beginning of pattern, add tests