Fix failing tests due to not mocking settings