unless ( grep{$test1 eq $_} @accepted1 && grep{$test2 eq $_} @accepted2) {