MPDF-3 Written new tests for the API