Added containsPrefixOf method and tests.