Added test for replacing an entry