Make metadata collection traversable.
Add and optimize tests for the BotDetector class.