implement support for bug history
add simple test for history