update license
QuState tests and fixes