Improved test and coverage commands, fixed on Windows.