Add tests for 'concat' and 'ref' functions.