Fixed tests bug.