Added a test for the pickling framework