Refactoring tests. Adding Viewport tests.