Add SplitSize test and fix bugs