The simplest way would be to add a CNAME record from www.test.com to test.com. This will definitely work, I've done it a million times for my clients while I worked at a certain domain provider. I'm not sure why they didn't suggest that. Ports do not matter here as it is a domain redirect.