testing some generic restrictions in factory