solving test problems