Add test for ES

correct es class
catch exception in report.py
correct test class