better test diagnostics