Nine people were seen in France a day before 39 migrants were found dead in the lorry, a court hears.