Plane lost altitude during maintenance test flight as part of repair process for previous engine problems, reports media