update json schema, change invoice test to use new contact class instead of deprecated Client