Add tests for scalar reference output