Updated unit test of parseLine().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Did refacotoring; added countBlackets().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>