xhr polling basic tests

Summary: increases test coverage to 69.5%

Test Plan: unit tests

Reviewers: joy

Reviewed By: joy

CC: Engineering

Differential Revision: https://phabricator.poptip.com/D2910