Fix style in UnitTests.
Move nweb script to function instead of running globally.