fixed JUnit test