Convert to and from the authorized_origins list and a string based schema ndoe
Make sure the tests clean up their environment