File mode changes
Revert "File mode changes"

This reverts commit e56f2a8bcfbdadcefd08ba83c94144846a825304.
Fixed errors in template's test
v0.0.7