fix test diagnostics