added funcional index and active test to contest controller