add parser test
check memory leak when parsing having clause
prevent panic when having result is null