minor changes to the pattern test