finally finished test factory module