Settings unittest

Add a unittest for the settings module.