Added test for canonical url redirect.