parsing model and tests