Bug 6972: Preliminary unit test