Added index checking functional test