Fix test output for combining filename and extension