updates to testing code based on changes to API docs