edit the eCart gateway credentials behavior, go to WebAssist -> eCart -> Gateway credentials. select the payPal Advanced gateway, and check the sandbox option.
make sure top uplaod the webassist/eCart folder and it should add the test mode option to the iframe automatically.