  The Painleve test is very useful to construct not only the Laurent series
solutions of systems of nonlinear ordinary differential equations but also the
elliptic and trigonometric ones. The standard methods for constructing the
elliptic solutions consist of two independent steps: transformation of a
nonlinear polynomial differential equation into a nonlinear algebraic system
and a search for solutions of the obtained system. It has been demonstrated by
the example of the generalized Henon-Heiles system that the use of the Laurent
series solutions of the initial differential equation assists to solve the
obtained algebraic system. This procedure has been automatized and generalized
on some type of multivalued solutions. To find solutions of the initial
differential equation in the form of the Laurent or Puiseux series we use the
Painleve test. This test can also assist to solve the inverse problem: to find
the form of a polynomial potential, which corresponds to the required type of
solutions. We consider the five-dimensional gravitational model with a scalar
field to demonstrate this.
