test code factorization
test code facto