added tests, fixed pipe close bug
Merge pull request #6 from huseyinalb/4-datatype-tests

added tests, fixed pipe close bug