Bugzilla #51928: Upgraded all tests to JUnit 4 Patch by Mehdi Houshmand, applied with minor cosmetics and error fixes