adding test of rest api