forbid any BMA call during tests
It seems that opening and closing a BMA session during tests (pytest) forbids any further opening of any BMA session.
As a consequence, I think it should be written in CONTRIBUTING.md that any opening/closing of BMA sessions in tests is forbidden, and that related functions should be patched.