Bug fixes for test environment in PDF report.
TestCase and new Django version implemented