added unit tests for parsepkglog, bug fix inspired by same