Add test functions for strspn and strchr