remove duplicate initialize calls from initialize_shell
remove superfluous tests