What should happen when passing empty string to 'contains' and 'prefix_matches'?

What should happen when passing empty string to 'contains' and 'prefix_matches'?

Need to test correct memory deallocation - requires ability to set the
allocation and deallocation functions.

Add reminder to test memory deallocation
Add reminder to test memory deallocation
