adds tests for detector with mask