* fix destination calculation for local commands
 * fix broken tests
 * add new non-passing tests as placeholders for tests that should be written.