Added tests for reading samples