Fix add_entry for key error and updated testcase