fixed test codes.