Add test logic to index file