[core] Make hostname generic in tests and remove webhdfs threadness test