Tests for ReviewPolicy.

Also moving DB cleaner functions to main config because it doesn’t work
in an external file (?!?!).