testing factory method on grid