testcases and workarounds for subname static "pkg::name" #345