Use a singleton for the WindowModel test stub

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
CardView: be more resiliant to a card destruction

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>