Fixed pre_gen_entity behavior.

The `handle_event` function was called `handle_info` and missing a parameter.
Added missing return from handle_event spec.
Merge pull request #35 from SkewedAspect/bug-ccase-pre_gen_entity-fixes

Fixed pre_gen_entity behavior.