added index and adapter based on karma-chai