Fixed initialization error in JUnit tests