Some tests for Split and a small fix