add spec test for expression with <registry>

https://bugzilla.redhat.com/show_bug.cgi?id=1160791