fixed file resource
fixed test