added tests. fixed split filter.