fix error in expected test result
clean up
clean up
create def or ref depending on parse history
connection can define usecase