ES6 Generator testing