Fix broken test of local server

Tick duration interface has not been adapted in test according to changes in
the code.
Parse command line options in client script

This way a custom hostname can be specified on each run.