[PATCH 1/2] tests: Tests dumping lockspace and resources