Add tests for extracting and building parameters