more validation and passing tests
improved validation for the activity_class setting