restructuring tests - added integration tests against remote endpoints