Testing uses different time instances than runtime. You should use things like this:
clock::create_for_testing(ctx); test.take_shared<Clock>();