Wrote some tests for parser method. It appears to be working but needs
more tests.