Added more tests

- Added tests for settings
- Moved api tests to respective modules