Refact test