Solving test case.