Added tests for push, pop and merge operations.
Move filtering to function.
Move empty index creation to function.
Update file -> partition in index tests.