Bug in PyCharm running tests