refactering
rewrite tests with file provider stub/mock