This MR also includes some fixes for problems in unit tests that were spotted during main changes:
- removes double opening of database in fixtures
- above also fixed problem with requested size of shared memory file not being respected (tests were effectively opening default 24G files while they actually need at most 500M)
- p2p is now successfully disabled during unit tests
Edited by Andrzej Lisak