Only calculate data directory once.
Clean up the standalone tests.