Implement saving test patterns