test createClass with dependency