You should not need to update that line manually... I'd change it back.
The credentials are saved in the webassist/ecart/checkout/credentials/gateways.php
Are you uploading that file after updating your username and password and setting it to test mode? That could be the issue. I'd need FTP access to fully test.