Test the resolution behaviour for file handles and package names.