Adding a test for the dir param and including missing requirements