WeakMap test suite

Hi,

This adds some tests which ensure that the WeakMap implementation conforms to the expected behaviour.