Testing both the ami and the websocket Interface