writing some capy tests and added relationships in models