Fixed nasty timing bug in unit tests.

It caused the CI build to fail every now and then
Remove throws classes that are not actually thrown.