Bug Fix, Test cases

Fixed a pretty major bug in the recursion logic and replaced the custom
test case with the ones provided by Milanova