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