added more unit tests and comments to long poll test