Add QClassDetection tests