tests: fix py.test integration with setuptools

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>