adding integration tests for directory uploads. currently failing

Here are a couple tests related to issue #110 and would probably benefit the test suite overall. I can work on a fix as well.