fixed#43 bugfix, test updated