log and fix test