Refactored the test to match the video