move api to new version and add tests

Could you rename this file to test-imap-response.js?