tests added for all endpoints