Fix issue in compatibility.
Add unittest. Surprisingly, there was no unittest for process_entries!