General $F$-test for Linear Restrictions  diagram