Added tests for the last and the first symbols in text