test for dir and property function