CB-5404: Fix fragile file tests

Several tests are dependent on whether directory paths end in '/' or
not. Also, manually-created file and directory entries should have an
associated filesystem attribute. This patch fixes both issues.