fix #36 , included test provided by gsmet