Fixes #5901: Implementation of #5448 normal ordering test

http://www.rudder-project.org/redmine/issues/5901