tests for hostname module
fix process error and add tests