Add tests for attributes