testes rest api rails