Refatorando codigo, testando class based views