Refactoring to runUnitTests task.