new test for the rest controller