added diag to test