improved some detections; added tests