Fixing issue #2. I just have improved factory method of TestObject