test the rest interface