add pattern & required tests