use a hook, rather than time, in the tests