parser/printer/tests: Add :history command support