Extract test name output to method