added improvements in version 1.0.1 and extendend unit test by covering buffer setting