Adding some tests for the viewport start and end events, and fixing two other existing tests that were broken