Drop tests which break after obsoletion of castor pool.

This PR is a backport of #4943.