Previous put method was always appending entries, method is modified to handle already existing entries (i.e update). New test added for random update