Testing the pattern that always return a new instance of object