can we have these constants defined inside the closure, instead of outside. Using that mechanism we can avoid declaring it as globals in tests