Tests for attribute and wrapper spaces.

Also see #346.