tests bug fixed