fix terminfo cap parser tests
resolve test compile failures