added test and index