Add test for legacy failure
Use a default of 303 instead of an exception
Merge pull request #5290 from wilsonge/patch-27

Fix minor b/c break in https://github.com/joomla/joomla-cms/pull/4292