fixed a bug in parser, updated engine test cases

parser class had bug in loop for retrieving hashtag. was missing a boolean
reassignment.

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>