Add negative test cases for attributes