update test

- add factories
- fix broken tests