removing now-functional method
renamed attributes() -> types() which makes more sense and can do some extra work
adding tests for types()