better error-messages for Graph::resource()

refs #159
changelog
reset namespaces after tests