add factories tests