Add index test to Makefile rules