Fixed async request polling bugs, improved unit tests