Added checkCanonicalUrl() method for all actions where it needed.

Added tests for all getUrl*() methods.