test: add tests for add_entry