Fixed test class to obtain password once

Start fixing the edit function and implementing new TDD protocol.
See TODO comments