testing rest endpoints