Fixed spec tests

Some tests were not fqdn safe, so they failed with Travis.