Fixed switch case operation and updated 3d_test.cfg