functional-tests: Fix intermittent test failures
The various intermittent test failures were caused by a race condition, where the miner sometimes ignores files created during the initial crawl. (#79).
Fixes: #56 (closed), #57 (closed), #62 (closed)