updated pagination tests
Fixed File::create_dir(), closes #1309