partial Factory method test  AND  variable  scope test