Added test pattern generation script