added test routine