tests: rearrange invocation of halsampler to avoid race conditions

see also: https://github.com/machinekit/machinekit/issues/202

Signed-off-by: Michael Haberler <git@mah.priv.at>