using test patterns