Change test cases timeout to 10000ms

The default 2000ms timeout seem to be too short. It is easily to fail due to timeout.