Increased timeout for tests to 3s

It is because require call takes too long (around 2s on my computer)
and it caused the test to fail from time to time.