Code coverage kwarg for Pkg.test

This PR effectively replaces #7393 - it does the same thing, but with keyword arguments instead of optional positional arguments.

Ping @IainNZ, @StefanKarpinski