Scope clause was an obstucle to know what went wrong in unittest.