Add unit tests for the locked_all_packages method.