Added tests for relationExists and Insert