Added test codes.