Implement module.require() (with test)