this fixes hanging tests. the session was probably not closing. must check if this is still testing the intended behaviour
session as a funcarg
move some more modules towards pytest