add test to #19
fix bug: implement read(2) #19
Merge pull request #20 from hiboma/implement-read

Implement read