Fix Brute force detection, add tests and configuration