Fixes and spanking new test suite for remotebackend