Check for prefix/suffix smaller than string

Add a test to check that smaller string than prefix/suffix are handled
in g_str_has_*() functions.
10 jobs for g_str_has_optimization in 24 minutes and 48 seconds (queued for 1 second)