fix firefox version detection
add version handling to safari detections
fix and extend BrowserDetection test