fixed assertions in JcaDetectorTest