Fix issues when debugging beatrix tests