The "pencil test" was used during Apartheid in South Africa to decide if a child got to grow up white or "colored" (biracial). If your hair wasn't curly enough to hold a pencil, you "passed" as white.