Fix exception raised from JUnit tests - Continuous integration