Made invalid attribute tests consistent