Increase timeout value to stop failing the test that runs first (warmup scala compiler might take longer than 5s on a loaded system).

Also added more info in the failure message.
(cherry picked from commit 4f7988de65c07b8909d56fd9f826623fa492b74d)