refacture fab and test django and test general