Relations concept removed, in and out references added. Test for references added