If a package uses `pkgs` and tries to get a non-existing package, there will be an uncachable error. As we cannot control this, this method needs to be removed. Instead of using this method, the mocked pkgs should be extended to support more cases.