add test case for issue #44
remove complicated nested parsing that was done with RegExs