Added regex to containsHost and updated tests.