More test coverage.
Change the implementation to check what settings form was saved. Added new util method set_setting where value transformations are handled.