testing rest with data