Update the test to use the server data from the context

This fixes the test on travis as it may not have consistent hostname