fixes #393 and adds tests
extract mocking file existence to method
Merge pull request #436 from despo/forcing-test-helper

Forcing test helper using ENV variable