Add unittests for findInflection