Add a few tests for lastIndexOf and endsWith.