Fixes #4344 - Add prefix to classes created by classes_success and classes_failure and add acceptance tests

Fixes #4344 - Add prefix to classes created by classes_success and classes_failure and add acceptance tests

cf http://www.rudder-project.org/redmine/issues/4344