Exclude JUnit from transforming before classes are redefined plus some small code refactoring.
Fix class redefinition for code that has a defined package(until now it seems only class that have default package could be redefined).