add short test for hasAttributes