fix settings page and add tests

- fixes settings page, add missing Injection.