test: check the error message for cycular dependency