start testing the buildrequest fakes

The buildrequest test were in a bad state in the sense that they only tested the "real" database implementation, and left the fakes untested.

I've rectified this, and fixed the various deficiencies in the fakes that were revealed.