Add tests for outputting referenced column of scalar reference column
test: fix expected output