added additional test cases for abstract factory
changed import for factory method