Ported weakset test to CppUnit and added it to the build system.