Fix weak_fn unit test.