force run of gc in weak ref test case

pypy is not using reference counting and thus the weakref will not trigger
an error immediately unless a garbage collector run is done explicitly.