Fix test failure in test_cmd_line by initializing the hash secret at the earliest point.