Theoretically, the constant stress patch test is not rigorous. Also, either the patch test of non-zero constant shear for Mindlin plate problem or non-zero strain gradient curvature of the microstructures cannot be performed. To improve the theory of the patch test, in this paper, based on the variational principle with relaxed continuity requirement of nonconforming element for homogeneous differential equations, the author proposed the individual element condition for passing the patch test and the convergence condition of the element: besides passing the patch test, the element function should include the rigid body modes and constant strain modes and satisfy the weak continuity condition, and no extra zero energy modes occur. Moreover, the author further established a variational principle with relaxed continuity requirement of nonconforming element for inhomogeneous differential equations, the enhanced patch test condition and the individual element condition. To assure the convergence of the element that should pass the enhanced patch test, the element function should include the rigid body modes and non-zero strain modes which satisfied the equilibrium equations, and no spurious zero energy modes occur and should satisfy new weak continuity condition. The theory of the enhanced patch test proposed in this paper can be applied to both homogeneous and inhomogeneous differential equations. Based on this theory, the patch test of the non-zero constant shear stress for Mindlin plate and the C 0-1 patch test of the non-zero constant curvature for the couple stress/strain gradient theory were established.