Refacter test