Added tests communicating to the real emailvision interface, refactored code in consequence of that