Update to API version 31

Updates to test classes and all metadata files to bring them up to API 31.