add files permissions
add files tests