fix deprecated dict syntax in pkg tests