While performing test trips on #1 hoist, the slack rope knocker got pulled and would not reset. It was found that the switch was broken causing the hoist to be down. The decision was made to evacuate the mine and MSHA was called. The electricians replaced the switch and everything went back to normal.