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