added pattern testing script