state writing test