play_pattern to test a pattern