MFCTraining: kklite, create unit test function, and improve the design of
code(refactory)