fix test codes applied