added initialize/shutdown to tests