add directory param
add test for DirectoryReflection save