Finish layout and routes, refactor static pages' tests