Added directory removal.

Also added tests.
Removed file creation from removal tests.

Previously, removal tests would create a file if it didn't exist, and then remove it.