added unit tests
renamed get_ak_indexs to get_ak_indexes