Renamed split to partition
Fix bug in tests