refator test