change localhost to be a realistic dir in tests