Added a test file, testing uses a mocked net connection.