fixed specs for get_state_from_data method and hipchat_uri_get method