Allows @klass for a job to be of a Class instance

The code allows for @klass to be a class constant, but the #valid? method assumes that for non-nil @klass that it responds to #size (assuming a String?)  This extracts that logic to klass_valid and allows for the case where @klass is a Class

Adds test case allowing @klass to be a class constant.