Avoid scope error in tests