catch error from malloc in cache initialization
fixes incorrect assertion
adds various tests
check result of esa_init_CLD
Merge branch 'master' into no-rmq