Tests. Error model added.