Added a test to for user specified formula checking.
Check formulas to make sure all variables are parents of current node.