Parse pencilmarks unit test and bug fix