Add spec generator for policies.

Nuke factory girl.

Add test hook.

Add test hook.