test pattern generator for my research