fix es5 check in test