fix so alreadyExisted will work according to intention of test