Adding debugging to tests