some unit tests added for  #14