parser methods and format tests