test input to aiiwrite with hasattr rather than exception