tweaks to api tests