Added test for creating object instances without using the new keyword.
Added test for implement the factory method in scala with apply.