Fixed class name check to allow namespace'd class name