test on dirname attribute