wrote some tests + fixed some bugs in splits
wrote some tests + fixed some bugs in splits