unit tests: MDL-17646 Helper functions for loading and cleaning up test data.