added test codes.