added model relationship, added testhelper, added tests