Discrete-Adjoint Solver Tests and Consistency Analysis for Discontinuous Galerkin Discretization