don't throw NPE when named location refers to another (causing locations in catalog to fail), and extend unit test to trap this error
add groovy truth function
fixes following code review