add tests to Gadgets#index