Test code for interacting with Xively