bonds test code