Improved view tests.

View tests now preserve __metadata__.py files.