tests and improvements for mailarchiveAPI
use improved mailarchiveAPI in the app
fix array comparison in test using JSON.stringify