It is very dangerous to assume that it will be done in 5 seconds.This makes this test very fragile and it needs to be fixed.