Fix bug with Replace Worst survivor selection
Add test for replace worst