Extra tests for String and `self`.

This is to ensure that `self` is also properly defined for built-in
definitions.