issue #13 : fix error message
issue #13 : add test-case of cyclic function