initial testing framework, using pickle