added test case for read data-attr only