Add tests to make sure that Base.Sys.* don't throw

As suggested in #4147