Fixed callback of update of the deal and the shop; fixed unit tests using passportStub module

The passportStub was wrong and it has been reimplemented for project convenience.