Parser test, bugfix and CLI for parser