Create helper to auto-undef requirejs modules

Useful if some module needs to be mocked.
Update reporter_spec to clear requriejs state using undef
fixup! Add spec for Promise