Test for api index
Tests API for index, show, update