Unittests

Updated to check for directory existing and for it to contain at least 1 markdown file