Rework RemoteRepositoryTests to
 * use free port and
 * use build directory "build" instead of "target"