Make test not care about line number of sample_fn
Stop time during tests

Should fix random test failures on Jenkins, e.g.
https://jenkins.gedmin.as/job/profilehooks-on-windows/39/