refactor: improves some tests and config settings.