Added tests and changed setter so that Newtonsoft can deserialize config and set properties