Test-bed code