added testsuite

This checks that the output from converting a sample file matches the
expected output
Added support for images and codeblocks