docs, error msgs, tests for depends_on :formula

replacing depends_on_formula in DSL
Merge pull request #6138 from rolandwalker/doc_dsl_depends_on

docs, error msgs, tests for depends_on :formula