test settings code