Added working test for Rest controller.