Copy-pasted tests from BH