Add tests for API

- [ ] sites
- [ ] users
- [ ] activity logs