directory-based test, few new utility functions