Added some tests for endsWith.