added more unit tests for a stricter control on relation