Fix deprecation warning on checkout test