Add check for cyclic object
Add test to check if cyclic object check works