Add tests for hardcoded reference in definition.
deduplicate tests