issue 506 fixed
added test for "raw" method
added puzzles for test and mock methods
changed stream assertion
merge with master
Merge pull request #523 from svarovski/issue-506

#523: pull request issue 506 fixed