fix file reflect
command and add test
#3426
Merged
file reflect
command and add test
#3426