test consumer backend in rails