test util added. Thanks www.petrikainulainen.net