checkout: add checkout test and source