change kvtest to fix seg fault and parse.py parsing issues