Added assertion into test_definition_with_circular_dependency