AFAIK the landing gear is generally not retracted on the first few test flights. I imagine the logic being that if the U/C is retracted and then has some sort of a problem and will not extend you then have a damaged (at best) aircraft that will throw your development schedule out by months. If you do as much of the flight testing as possible with gear out you get as much done before introducing the additional risk of undercarriage problems - risk management.