Fixes #4404 - Add prefix of result classes copied and add test cases

Fixes #4404 - Add prefix of result classes copied and add test cases
cf http://www.rudder-project.org/redmine/issues/4404