Added tests for the changes in remote (+ checks for invalid remote names). Fixes #18