update index and test file. tests working