Thus the problem at the end was that the tracelevel for the lines we look with grep wasn't activated? It's weird, because in that case the test shouldn't fail occasionally... it should fail always.