Write test helper