Add a foreign attribute test

Currently works for all builders besides the PullDOM adapter.