new parsing with tests