add assert to test
add docstring examples
Merge pull request #1 from smichr/parse

add assert to test