Solutions for common JUnit issues