Move random_unreviewed to manager and add tests