Fixed settings upgrade unit test