test: Add example of a preview page.
Move all classes definitions to be together.