Run tests with pytest instead of trial

Follow up of #673 pull request.

Failing tests where occasioned by inspecting test.log output (A log file observer created by trial). I created fixtures that handle log tracking without overriding each other. They are in a separated file so running tests with trial is still posible.