Tests for attribute and wrapper spaces.
Merge pull request #347 from henrik/spaces-tests2

Tests for attribute and wrapper spaces.