refactering
rewrite test with file provider stub/mock