Fixed test for parameters and add index.

Type should be ready, expect only minor changes.