relations and tests