Sort lib_files in tests to ensure consistent ordering