[unit tests] add initial unit test app
[history] add history_dump() debug facility
[unit tests] add history_next/history_prev unit tests