added factories folder and removed test folder