Added tests for text parsing