by Visvanath Ratnaweera.
I am also a non-Windows person. So can't go in to details. I notice that the web address of your Moodle is going to be http://moodle.test. So, moodle.test as a domain name resolves in your computer? Does 'ping moodle.test' get replies?
If yes, the next thing to check is whether $CFG->wwwroot = 'http://moodle.test'.