add test for GET on api route