adapted pattern to find directories

added/modified tests

Issue: #70