Rename ScanKeyTest to ScanUtilTest, add more tests for variable length keys, fix bugs for formuting start/stop key