[#8446] test fixes and fix on only 301 redir for profiles
6 files changed