Add a more meaningful test

Add a test that fits the model to curves extracted from a real dataset. Also adding a script that simplifies generation of such datasets.