Test detection