added test example provided by Andy