bug fix for parser add function.
modified junit test.