Fix Module.new bug and test for vhost