Use a singleton for the WindowModel test stub

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