Add REST controller unit test to index.js