diff --git a/src/test/java/jez04/structure/test/ClassStructureTest.java b/src/test/java/jez04/structure/test/ClassStructureTest.java
index 241d7af6756aea5605e4a59033b772ec35864a4f..19d3dde5e4580cbbd4d8bef3f6b720bf03e06e5c 100644
--- a/src/test/java/jez04/structure/test/ClassStructureTest.java
+++ b/src/test/java/jez04/structure/test/ClassStructureTest.java
@@ -56,7 +56,7 @@ class ClassStructureTest {
 				.size() > 1);
 	}
 
-	void loadScoresFromStreamExceptionTest() throws ScoreNotLoaded, IllegalAccessException, InvocationTargetException, NoSuchMethodException, SecurityException {
+	void loadScoresFromStreamExceptionTest() throws Exception, IllegalAccessException, InvocationTargetException, NoSuchMethodException, SecurityException {
 		App app = new App();
 		try {
 			app.loadScoresFromStream(new InputStreamReader(App.class.getResourceAsStream("/bestScores-err.csv")))
@@ -64,8 +64,7 @@ class ClassStructureTest {
 			fail("Exception not throwen!");
 		} catch (Exception e) {
 			assertEquals(ScoreNotLoaded.class, e.getClass(), "Excpectin exception of type ScoreNotLoaded");
-			ScoreNotLoaded ex = (ScoreNotLoaded) e;
-			int count = (int)ScoreNotLoaded.class.getDeclaredMethod("getCount").invoke(ex);
+			int count = (int)ScoreNotLoaded.class.getDeclaredMethod("getCount").invoke(e);
 			assertTrue(count > 0, "Info about already parsed line missing");
 		}
 	}