fixed orient unit tests for relations, composite keys