string: Cleanup strnlen test

Improve strnlen test coverage and cleanup code.
1 file changed