Fixed bug in ES6 class test