test: add a test for getting the keys of the global

Make sure that this module works on the host global object,
which could act *interesting* in some older browsers that misbehave…