Add tests for API

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