Test of D3 API in Rails