test write auth