Added some specs
Added a spec for the Attributes class
The Attributes methods should always return an instance of the Attributes class, for consistency