improve integration tests
refactor tests with shared examples
add tests for layout links
test full_title and refactor spec utilities