write parser tests