Critical bug fix deleting in RemoteDb
Added a few more tests