Created class factory tests