opt karma test and index