New test case was added, covering all new cases of the algorithm