added unittest for Preparer