write tests and methods for initialize, getting value for a key, and setting key-value pair