Add 3 convenience methods for easy access to states.
Expose router to window in the test app.