fix test and compilation