minor (Solution) : added unit tests for pattern Factory and some additionally classes to pattern Factory