a semi-working unit test, by some stroke of luck