Refactored Test to use Let