Refactoring junit scope.