Fix some TCs + improved timing issue:

* Condition instead of sleep

Jenkins Test Run:
https://jenkins.catrob.at/view/All-Categories/view/Catroid-multi-job/job/Catroid-Multi-Job-Custom-Branch-RELOADED/398/

Master Test Run (also 21 TC fails):
https://jenkins.catrob.at/view/All-Categories/view/Catroid-multi-job/job/Catroid-Multi-Job-Custom-Branch-RELOADED/400/
Remove the newline pls! :)