Back test index options

is there any way to test customized strategies/built in strategies for indexes like nifty and bank nifty .