add test case for encoding/decoding row key