Add unit tests for swapfiles0-9 files creation