fix test counter error