Fix for issue #21

Two issues were causing the tests to fail
- In Mac OS, os.listdir return hidden files (starting with ".")
  changed the commands executed by entities to add "-a"
- Sometime file names have spaces and we're using split("\n"),
  changed to list the testing directory, which is guaranteed (for now)
  not to have such files