Add decoding support for attributes, adjust test case