add tests to verify layout links and refactor ApplicationHelper tests