add ES5/ES6 compatibility tests