add tests and methods: index, exists, get, delete