Improved stability of integration tests

Added a default sleep and second execution of run to
also handle delayed fs events