Added support for transforming define.Class with an object return and added additional tests