moved and added the dependend tests, added a grouping of dependend fields in the depends function