testsing andrefactoring