fix test and def