fixed test codes