Add tests to validate reference format.