working on api endpoint testing