Clean up expired handlers
use global bot object to reference get_url
Fix bot mock object
Add a few unit tests