Add testnet3 mode

If the application versionName contains "-test", switch to testnet mode.