On a Buffon type problem for an irregular lattice and different test bodies