Use pytest for better tests reports

We should use pytest and its convention (just add "test_" to file and function names) so we can obtain automatic test reports.
We also need to use one function per specific functionality to test instead of current flat scripts. https://docs.pytest.org/