Fixing problem in testing with null Scope field