adds relations and tests for that relations