Adding ref and better failed test name print