[tests] wait until storages are ready

We have to wait until the storages are initialized before proceeding
with the test case execution.
[tests] fix MTPResponder_test::testSetObjectReferences()

On devices with many stored files, 1000 might be a too low object handle
to be invalid.
Merge PR#52 from xhaakon/master