Fixes some new warnings coming from JUnit 4.13, a step ahead to JUnit 5. I left 2 complicated ExpectedException warnings. Change will be needed for JUnit 5. https://www.luxoft-training.com/news/migrating-from-junit-4-to-junit-5-replacing-rules-with-the-extension-model-part-1/