attr-exists? and more tests