Improved BaseTest for serialisation, and simplified by removing shared_ptr and weak_ptr support. Need to think through this a lot more.