Fix weakmap test.