fix for << method + tests
Merge pull request #512 from seuros/append-method

fix for << method + tests