replacement algoritme test fix