Added test with relations