Added the index action and use the rack-test for testing app.