Compose all attributes up the inheritance chain.

It seems like inheriting class behaviour in addition to attributes would
be useful. Ahem. And move attributes tests into its own spec file.