Adding some of the testing stuff I used for initial verification of bitstream.