Test move_to_top implementation