Tests for getAttribute()