REST Api and TestCase