Use JUnit 4.11 for tests and add test that shows that ClassRules does not work as expected