No. If you have to modify a class before and after unit testing, you defeat the purpose of unit testing by allowing false passes (e.g. an error may be negated by modifying the class, so it passes...