add rest interface test