add more content attribute tests and fix bug