Make test check for circular dependency error. Fix #18