Add case-sensitivity and relationships buildup tests + refactor them