added test for no cycles