Move base and unix tests to respective packages; part of #1161.