Add initial unittests for web resources.