use es6 style class, setup es6 transformation for test
use object instead of class