fix test in debug mode