added tests for add&remove methods, removed splitline func