tests for extended syntax and applyEndPatternLast are working