Merge pull request #20 from gpaul/master

kr/pretty: fix invalid heap pointer bug in tests.