Dir functional tests