Fixed map splitAt method and prvent Seq splitAt to lead to the same error
Added tests for fold's, map and flatMap