move api to new version and add tests

Could you change the name to test-imap-response.js?