Are you able to start and stop IIS Express as part of your test program? Or is it being started some other way?

http://stackoverflow.com/questions/4772092/starting-and-stopping-iis-express-programmatically might be worth looking at if you can control how IIS Express is being started.