:white_check_mark: Add a test for checkoutHead