Turn settings into a cogwheel, add feature tests for it