finish getExcerpt and actualy add tests
adds tests mentioned in previous commit for trimToLength and additonal tests for getExcerpt