SMW\ParserTextProcessor add test and improve CRAP index

CRAP index:
* Before 44
* After 35

Change-Id: I86cb6d1d7c55cbaaffd369fe1606eb1d6f7e426d
Merge "SMW\ParserTextProcessor add test and improve CRAP index"