Policy case test

Rebases the tests (only) from #705. The test passes after the changes from #831 are integrated.