ES6 tests and factories