First of all, it is always easiest to work with TWO separate things:
1) A remote VPS ssh terminal for the masternode mode only dashd
2) A separate dash-qt wallet, either on a different VPS or synced locally.
I know you're just on testnet, but that is how most real-world users will interact and...