remove controller test.  put this logic in the endpoint test